package com.laoye.service;

import com.github.pagehelper.PageInfo;
import com.laoye.bean.Cart;
import com.laoye.bean.Product;
import com.laoye.dto.*;
import com.laoye.util.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProductService {
    void addProduct(Product product);

    void updateProduct(Product product);

    Page<Product> getAllProducts(String prod_name,
                                 String category,
                                 Byte status,
                                 Integer pageNum,
                                 Integer pageSize);
    void updateStatus(StatusDTO statusDTO);

    List<ProdSimpleDTO> getSimpleProduct();

    ProductInfoDTO getProductById(Integer id);

    Integer getStore(Integer id);

    List<ProdSimpleDTO> getSimpleProductByCategory(String  category,String prod_name);

    void updateStore(ProductStoreDTO productStoreDTO);
}
